import 'package:flutter/material.dart';
import 'package:journal/blocs/journal_edit_bloc.dart';

class JournalEditBlocProvider extends InheritedWidget {
  final JournalEditBloc? journalEditBloc;

  const JournalEditBlocProvider(
      {Key? key, required Widget child, this.journalEditBloc})
      : super(key: key, child: child);

  static JournalEditBlocProvider? of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType<JournalEditBlocProvider>();
  }

  @override
  bool updateShouldNotify(JournalEditBlocProvider old) => false;
}